package cn.bld.service;

import cn.bld.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserService {
    public SysUser login( String account, String password);
    public List<SysUser> show( );
    public Integer findCount( String realName , Integer roleId );
    public List<SysUser> findByCondition( String realName , Integer roleId , Integer pageNo, Integer size);
    public int delById(Integer id);
    public int checkAccount(String account);
    public int insertUser(SysUser sysUser);
    public SysUser findGyId(Integer id);
    public int updateUser(SysUser sysUser);
    public int deleteUser( Integer userid);
    public int checkPassowrd( String oldPassword , Integer id);
    public int updatePassword(Integer id,String newpassword);


}
